import Layout from '@/layout'
import SettingEnv from '@/setting.env'

const users = 'users_'
export default {
  path: `${ SettingEnv.customRouter }/users`,
  name: 'users',
  component: Layout,
  alwaysShow: true,
  redirect: `${ SettingEnv.customRouter }/users`,
  meta: {
    title: '用户',
    icon: 'el-icon-user-solid'
  },
  children: [
    {
        path: 'users_list',
        name: `${ users }List`,
        component: () => import('@/views/users/usersList'),
        meta: {
          title: '用户管理'
        }
      },
    {
      path: 'users_add',
      name: `${ users }Add`,
      component: () => import('@/views/users/usersAdd'),
      meta: {
        title: '添加用户'
      }
    }
  ]
}
